#include <stdio.h>

int my_money(int x)
{
	int money;
	if(x <=0)
	{
		return 0;
	}
	if(x == 1)
	{
		money = 100;
	}
	if(x > 1)
	{
		money = 100 + 10 * (x - 1);
	}
	
	return money;
}

int main(int argc,char *argv[])
{
	int a;//a为天数
	printf("pls input few days:");
	scanf("%d",&a);
	int ret = my_money(a);
	printf("ret = %d\n",ret);
	
	return 0;
}